import 'package:flutter/material.dart';
import 'package:get/get.dart';

class GetxRouteArgument extends StatefulWidget {
  const GetxRouteArgument({
    super.key,
  });

  @override
  State<GetxRouteArgument> createState() => _GetxRouteArgumentState();
}

class _GetxRouteArgumentState extends State<GetxRouteArgument> {
  @override
  void initState() {
    super.initState();
    print(Get.arguments);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("我是一个getx路由传参演示页面"),
      ),
      body: const Center(
        child: Text(
          'getx路由传参',
          style: TextStyle(fontSize: 40),
        ),
      ),
    );
  }
}
